/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2015
 */

package com.sun.showcase.biz.basic.service;

import java.util.List;

import com.sun.showcase.client.domain.basic.BaseseCodingRule;
import com.sun.showcase.client.query.basic.BaseseCodingRuleQuery;
import com.sun.showcase.pojo.DataGrid;
public interface BaseseCodingRuleService{

	/**
	 * 获得数据表格
	 * 
	 * @param bug
	 * @return
	 */
	public DataGrid datagrid(BaseseCodingRuleQuery baseseCodingRuleQuery);

	/**
	 * 添加
	 * 
	 * @param baseseCodingRuleQuery
	 */
	public BaseseCodingRule add(BaseseCodingRuleQuery baseseCodingRuleQuery);

	/**
	 * 修改
	 * 
	 * @param baseseCodingRuleQuery
	 */
	public void update(BaseseCodingRuleQuery baseseCodingRuleQuery) ;
	

	/**
	 * 物理删除
	 * 
	 * @param ids
	 */
	public void delete(java.lang.Long[] ids);
	
	/**
	 * 逻辑删除 更新状态位
	 * 
	 * @param ids
	 */
	public void deletePt(java.lang.Long[] ids);

	/**
	 * 获得
	 * 
	 * @param BaseseCodingRule
	 * @return
	 */
	public BaseseCodingRule get(BaseseCodingRuleQuery baseseCodingRuleQuery);
	
	
	/**
	 * 获得
	 * 
	 * @param obid
	 * @return
	 */
	public BaseseCodingRule get(String id);
	
	/**
	 * 获取所有数据
	 */
	public List<BaseseCodingRuleQuery> listAll(BaseseCodingRuleQuery baseseCodingRuleQuery);

	public void updateEdit(BaseseCodingRuleQuery baseseCodingRuleQuery);
	/**
	 * 根据id查询编码
	 * @param id
	 * @return
	 */
	public String getNextCodeById(Long id);
}
